﻿using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using TIS.DAO;

namespace TIS.UserControl
{
    public partial class video : System.Web.UI.UserControl
    {
        SettingDAO _settingDao = new SettingDAO();
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                if (Session["lang"] == null)
                {
                    Session["lang"] = 1;
                }
                Setting();
            }
        }
        public void Setting()
        {

            ltlYoutube.Text = _settingDao.GetValue("youtube", int.Parse(Session["lang"].ToString()));
            ltlVideoDescription.Text = _settingDao.GetValue("youtubeDescription", int.Parse(Session["lang"].ToString()));
           
        }
    }
}